package com.hbnu.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 平台信息表(TPlatform)表实体类
 *
 * @author makejava
 * @since 2025-07-16 14:25:38
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("t_platform")
public class TPlatform implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号（自增主键）")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonFormat(pattern = "id")
    private String id;

    @ApiModelProperty(value = "平台名称")
    @TableField("platformName")
    private String platformName;

    @ApiModelProperty(value = "平台类别")
    @TableField("platformCategory")
    private String platformCategory;

    @ApiModelProperty(value = "级别（如：国家级、省级、校级等）")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "批准单位")
    @TableField("approvalUnit")
    private String approvalUnit;

    @ApiModelProperty(value = "批准时间（格式：YYYY-MM-DD hh:mm:ss）")
    @TableField("approvalTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approvalTime;

    @ApiModelProperty(value = "依托学院")
    @TableField("supportCollege")
    private String supportCollege;

    @ApiModelProperty(value = "依托学院id")
    @TableField("supportCollegeid")
    private String supportCollegeid;

    @ApiModelProperty(value = "负责人/联系人")
    @TableField("contactPerson")
    private String contactPerson;

    @ApiModelProperty(value = "运营状态（如：正常运营、暂停、撤销等）")
    @TableField("operationStatus")
    private String operationStatus;

    @ApiModelProperty(value = "录入人")
    @TableField("Entered")
    private String Entered;

    @ApiModelProperty(value = "录入时间")
    @TableField("Enteredtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime Enteredtime;

    @ApiModelProperty(value = "审核状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "退回原因")
    @TableField("reason")
    private String reason;

    @ApiModelProperty(value = "负责人/联系人工号")
    @TableField(value = "contact_person_id")
    private String contactPersonId;

    @ApiModelProperty(value = "平台类别")
    @TableField(value = "platform_category_name")
    private String platformCategoryName;
}

